package be.kuleuven.thesis.media;

import android.media.MediaPlayer;
import be.kuleuven.thesis.framework.Song;

public class SongMediaPlayer extends MediaPlayer {
	private Song song;
	private boolean loaded = false;
	
	public SongMediaPlayer() {
		super();
	}

	public Song getSong() {
		return song;
	}

	public void setSong(Song song) {
		this.song = song;
	}

	public boolean isLoaded() {
		return loaded;
	}

	public void setLoaded(boolean loaded) {
		this.loaded = loaded;
	}
	
	@Override
	public void reset() {
		setOnCompletionListener(null);
		super.reset();
		setSong(null);
		setLoaded(false);
	}
}
